<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="com.su.middle.Utils" %>
<jsp:useBean id="user" class="com.su.middle.User" scope="session"/>
<jsp:setProperty name="user" property="*"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title>Middle Project</title>
	<link href="style.css" rel="stylesheet" type="text/css" />
</head>

<body>
	<div id="container">
		
		<h1 id="logo">Middleware Project</h1>
		<% if (Utils.isLogged(user)) { %>
			<p id="user">
			<%=user.getName()%> - 
			<em><%=(user.getType() == 0 ? "Студент" : "Преподавател")%></em>
			</p>
		<% } %>
		<hr class="clear" />